<?php  

/**
* 
*/
class BaseTableKey
{
  protected $_name;
  protected $_field;
  
  public function __construct($name,$field)
  {
    $this->_name = $name;
    $this->_field = $field;
  }
  
  public function getName(){
    return $this->_name;
  }
  
  public function generateCreateScript(){
    return 'KEY `' . $this->_name . '` (`'.$this->_field.'`)';
  }
}


?>